package com.example.dao;

import com.example.model.Seckill;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SeckillMapper {
    int deleteByPrimaryKey(Long seckillId);

    int insert(Seckill record);

    int insertSelective(Seckill record);

    Seckill selectByPrimaryKey(Long seckillId);

    int updateByPrimaryKeySelective(Seckill record);

    int updateByPrimaryKey(Seckill record);

    Long getNumBySeckillId(Long seckillId);

    int updateNumBySecKillId(Long seckillId);

    int updateNumByIdAndNum(Long seckillId);

    Long selectVersionIdBySecKillId(Long seckillId);

    int updateByVersion(Long seckillId, Long version);
}